using System;
using System.IO;

namespace PlaxoSyncWM {
    internal class Reader : IDisposable {
        private readonly StreamReader streamReader;

        public Reader(string path) {
            streamReader = new StreamReader(new FileStream(path, FileMode.Open, FileAccess.Read));
        }

        public void Dispose() {
            streamReader.Close();
            streamReader.Dispose();
        }

        public string ReadLine() {
            return streamReader.ReadLine();
        }
    }
}